package com.example.simple.adapter.viewHolder

import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter4.BaseMultiItemAdapter
import com.example.app.databinding.AppStateViewEmptyBinding
import com.example.simple.entity.SimpleEntity

/**
 * CreateBy:Joker
 * CreateTime:2024/1/8 20:01
 * description：
 */
class VHSimpleOne(
    parent: ViewGroup,
    val binding: AppStateViewEmptyBinding = AppStateViewEmptyBinding.inflate(LayoutInflater.from(parent.context), parent, false)
) : RecyclerView.ViewHolder(binding.root)

class SimpleOneAdapter : BaseMultiItemAdapter.OnMultiItemAdapterListener<SimpleEntity, VHSimpleOne> {
    override fun onCreate(context: Context, parent: ViewGroup, viewType: Int) = VHSimpleOne(parent)

    @SuppressLint("SetTextI18n")
    override fun onBind(holder: VHSimpleOne, position: Int, item: SimpleEntity?) {
        if (item == null) return
        holder.binding.apply {

        }

    }

}